﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home/Home.Master" AutoEventWireup="true"
    CodeBehind="CreateOrder.aspx.cs" Inherits="Project.Teller.CreateOrder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="StatusLogin" runat="server">
Welcome:
    <asp:Label ID="Label6" runat="server" Text="Label" Font-Bold="True" ForeColor="White"></asp:Label>
    <asp:Button ID="Button1" runat="server" Text="Logout" OnClick="Button1_Click" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Menulefs" runat="server">
    <ul id="nav">
        <li class="menu1"><a>Menu</a> </li>
        <li class="menu2"><span>
            <img src="../Resource/Picture/menu1.gif" /><a href="OrderGuest.aspx"> View Orders Guest</a></span>
        </li>
        <li class="menu3"><span>
            <img alt="" class="style2" src="../Resource/Picture/menu1.gif" />
            <a href="UpdateTeller.aspx">Update Price & Route</a> </span></li>
        <li class="menu4"><span>
            <img alt="" class="style2" src="../Resource/Picture/menu1.gif" /><a href="EditTeller.aspx">Edit
                Information</a></span> </li>
        <li class="menu5"><span>
            <img alt="" class="style2" src="../Resource/Picture/menu1.gif" /><a href="OrderTeller.aspx">Orders</a></span>
        </li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
    <div id="CreateOrder">
        <h1>
            Create Order</h1>
        <table style="width: 97%;">
            <tr>
                <td style="width: 195px">
                    <li><span>CustomerId:</span> &nbsp;
                <asp:Label ID="Label2" runat="server" Visible="False">0</asp:Label>
            </li></td>
                <td style="width: 197px">
            <asp:DropDownList ID="DropDownList4" runat="server"
                DataSourceID="DataCustomer" DataTextField="ID" DataValueField="ID">
            </asp:DropDownList>
                <asp:LinqDataSource ID="DataCustomer" runat="server" ContextTypeName="Project.DataPOFDataContext"
                    EntityTypeName="" Select="new (ID)" TableName="CustomerOrders">
                </asp:LinqDataSource>
                </td>
                <td style="width: 117px">
                    <li><span>Order ID :</span>
                        </li>
                </td>
                <td>
                        <asp:TextBox ID="TextBox1" runat="server" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 195px">
                    <li><span>From</span>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Label ID="Label3" runat="server" Visible="False">0</asp:Label>
            </li></td>
                <td style="width: 197px">
                <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="DataFrom" DataTextField="Location1"
                    DataValueField="Location1" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged1">
                </asp:DropDownList>
                <asp:LinqDataSource ID="DataFrom" runat="server" ContextTypeName="Project.DataPOFDataContext"
                    EntityTypeName="" Select="new (Location1)" TableName="Locations">
                </asp:LinqDataSource>
                </td>
                <td style="width: 117px">
                    <li><span>Name:</span>
                </li></td>
                <td>
                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 195px">
                    <li><span>To</span>
                <asp:Label ID="Label4" runat="server" Visible="False">0</asp:Label>
            </li></td>
                <td style="width: 197px">
                <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="DataTo" DataTextField="Location1"
                    DataValueField="Location1" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList2_SelectedIndexChanged1">
                </asp:DropDownList>
                <asp:LinqDataSource ID="DataTo" runat="server" ContextTypeName="Project.DataPOFDataContext"
                    EntityTypeName="" Select="new (Location1)" TableName="Locations">
                </asp:LinqDataSource>
                </td>
                <td style="width: 117px">
                    <li><span>Address:</span>
                </li></td>
                <td>
                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 195px">
                     <li><span>Account</span>
                <asp:Label ID="Label1" runat="server" Visible="False">0</asp:Label>
            </li></td>
                <td style="width: 197px">
                <asp:DropDownList ID="DropDownList5" runat="server" DataSourceID="DataAcc" 
                    DataTextField="Id" DataValueField="Id">
                </asp:DropDownList>
                <asp:LinqDataSource ID="DataAcc" runat="server" 
                    ContextTypeName="Project.DataPOFDataContext" EntityTypeName="" 
                    Select="new (Id)" TableName="AccountLogins">
                </asp:LinqDataSource>
                </td>
                <td style="width: 117px">
                     <li><span>Phone :</span>
                </li></td>
                <td>
                <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 195px">
                     <li><span>Service:</span>
                </li></td>
                <td style="width: 197px">
                <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="DataService" DataTextField="Service1"
                    DataValueField="Service1" AutoPostBack="True" 
                    onselectedindexchanged="DropDownList3_SelectedIndexChanged1">
                </asp:DropDownList>
                <asp:LinqDataSource ID="DataService" runat="server" ContextTypeName="Project.DataPOFDataContext"
                    EntityTypeName="" Select="new (Service1)" TableName="Services">
                </asp:LinqDataSource>
                </td>
                <td style="width: 117px">
                     <li><span>Email:</span>
                </li>
            </td>
                <td>
                <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
            </td>
            </tr>
            <tr>
                <td style="width: 195px">
                    <li><span>Volume</span>
                </li>
            </ul></td>
                <td style="width: 197px">
                <asp:TextBox ID="TextBox6" runat="server" ontextchanged="TextBox6_TextChanged" 
                    AutoPostBack="True"></asp:TextBox>
                </td>
                <td style="width: 117px">
                    <li><span>Identity :</span></li></td>
                <td>
                    <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 195px">
                      <li><span>Price :</span><asp:Label 
                    ID="Label5" runat="server">0</asp:Label>
            </li></td>
                <td style="width: 197px">
                      &nbsp;</td>
                <td style="width: 117px">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 195px">
                      &nbsp;</td>
                <td style="width: 197px">
                      <asp:Button ID="Button2" runat="server" Text="Submit"
            Width="75px" onclick="Button2_Click" /></td>
                <td style="width: 117px">
                     <input id="Reset1"  type="reset" value="Reset" style="width: 75px" /></td>
                <td>
                    </td>
            </tr>
        </table>
    </div>
</asp:Content>
